// import { $t } from "@/plugins/i18n";

const Layout = () => import("@/layout/index.vue");

export default {
  path: "/club",
  name: "Club",
  component: Layout,
  redirect: "/club/list",
  meta: {
    icon: "ep:office-building",
    title: "俱乐部管理",
    rank: 6
  },
  children: [
    {
      path: "/club/list",
      name: "ClubList",
      component: () => import("@/views/club/list/index.vue"),
      meta: {
        icon: "ep:list",
        title: "俱乐部列表",
        showParent: true
      }
    },
    {
      path: "/club/create",
      name: "ClubCreate",
      component: () => import("@/views/club/create/index.vue"),
      meta: {
        icon: "ep:plus",
        title: "创建俱乐部",
        showParent: true
      }
    },
    {
      path: "/club/member",
      name: "ClubMember",
      component: () => import("@/views/club/member/index.vue"),
      meta: {
        icon: "ep:user",
        title: "成员管理",
        showParent: true
      }
    },
    {
      path: "/club/detail/:id",
      name: "ClubDetail",
      component: () => import("@/views/club/detail/index.vue"),
      meta: {
        title: "俱乐部详情",
        showLink: false,
        activePath: "/club/list"
      }
    },
    // {
    //   path: "/club/edit/:id",
    //   name: "ClubEdit",
    //   component: () => import("@/views/club/edit/index.vue"),
    //   meta: {
    //     title: "编辑俱乐部",
    //     showLink: false,
    //     activePath: "/club/list"
    //   }
    // }
  ]
} satisfies RouteConfigsTable;
